import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import {BrowserRouter, RouterProvider} from "react-router-dom";
import './index.css'
import App from './App.jsx'
import router from "./router/index.jsx";

createRoot(document.getElementById('root')).render(
    // 路由写法一, 当前路由写法，需要在App.jsx组件中定义以及路由和二级路由
    <BrowserRouter>
        <App />
    </BrowserRouter>

    // 路由写法二，写法二不需要使用App.jsx组件
    //<RouterProvider router={router}></RouterProvider>
)
